<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>骨架屏扫光效果</title>
        <link rel="stylesheet" href="style.css" />
    </head>
    <body>
        <div class="card">
            <div class="image">
                <img src="https://assets.codepen.io/2002878/wake-up-and-code.jpg" alt="" />
            </div>
            <div class="content">
                <h4>CodingStartup</h4>
                <div class="description">
                    Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ex quasi enim facere commodi omnis...
                </div>
            </div>
        </div>

        <!-- 骨架屏 -->
        <div class="card loading">
            <div class="image"></div>
            <div class="content">
                <h4></h4>
                <div class="description"></div>
            </div>
        </div>

        <!-- 完整实现 -->
        <div id="card" class="card loading">
            <div class="image"></div>
            <div class="content">
                <h4></h4>
                <div class="description"></div>
            </div>
        </div>

        <script src="main.js"></script>
    </body>
</html>
